package mini.expr.lists;
import java.util.List;
import java.util.LinkedList;

import mini.Env;
import mini.expr.Element;
import mini.expr.Expr;


public class Listp extends Expr {
	private Expr e;
	
	public Listp(Expr e) {
		this.e = e;
	}

    public Element eval(List<Env> listOfEnvs, LinkedList var) {
    	Element element = e.eval(listOfEnvs, var);
    	
    	return new Element(element.isList() ? 1 : 0);
    }
}
